/*
    unisound_v03.h
    offer unisound module driver api and data type define
    designed by lunanting

    ---------------------
    2022-01-18 14:38:34
    first version

*/

#ifndef UNISOUND_V03_H
#define UNISOUND_V03_H

#include "aos/hal/uart.h"



/********************************data define*****************************/



//unisound class
typedef struct{
    int init;   //init status,1=inited,0=no init
    uart_dev_t uart;    //uart handler
    void (*deal)(int);  //deal api 

}UNISOUND;




/***********************************api extern ******************************/

extern int xp_uns_init(void (*user_deal)(int));    //init unisound module
extern void xp_uns_dealAPI_regist(void (*deal)(int));   //set unisound module user deal api




#endif
//end of the file
